<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\Route;

Route::group('api/:version/user', function () {
//    Route::post('sedRegCode', 'api/:version.User/sedRegCode');
    Route::post('reg', 'api/:version.User/reg');
    Route::post('login', 'api/:version.User/login');
    Route::get('makeCode','api/:version.User/makeCode');
});

//----主菜单列表
Route::get('api/:version/menu/getMenu','api/:version.Menu/getMenu');

//菜单
Route::group('api/:version/menucontent',function(){
    //菜单下的业务
    Route::post('getContent','api/:version.Menucontent/getContent');

//获取具体业务信息
    Route::post('getOneContent','api/:version.Menucontent/getOneContent');

});

//获取首页业务信息
Route::get('api/:version/message/getIndex','api/:version.Message/getIndex');
//购买业务
Route::post('api/:version/Goldorder/buyBusiness','api/:version.Goldorder/buyBusiness');
//获取系统消息
Route::get('api/:version/Sysmsg/getMsg','api/:version.Sysmsg/getMsg');
//生成订单
Route::post('api/:version/Order/makeOrder','api/:version.Order/makeOrder');
//支付
Route::post('api/:version/Pay/pay','api/:version.Pay/pay');

//获取消费记录
Route::post('api/:version/Goldorder/getExpense','api/:version.Goldorder/getExpense');

